* {
    margin: 0;
    padding: 0;
    outline: none;
    font-family: "Source Code Pro";
    box-sizing: border-box;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(-135deg, #c850c0, #4158d0);
}

.form {
    position: relative;
    width: 450px;
    background-color: #fff;
    padding: 50px 30px;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form h2{
    margin-bottom: 30px;
    text-align: center;
    font-weight: 400;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group .input-inner {
    height: 40px;
    width: 100%;
    position: relative;
}

.input-group .input-inner input {
    height: 100%;
    width: 100%;
    border: none;
    font-size: 17px;
    border-bottom: 2px solid silver;
}

.input-inner input:focus ~ label,
.input-inner input:valid ~ label {
    transform: translateY(-25px);
    font-size: 15px;
    color: #4158d0;
}

.input-group .input-inner label {
    position: absolute;
    bottom: 10px;
    left: 0;
    color: gray;
    pointer-events: none;
    transition: 0.3s all ease;
}

.input-group .input-inner .underline {
    position: absolute;
    bottom: 0;
    height: 2px;
    width: 100%;
}

.input-group .input-inner .underline:before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background: #c850c0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.input-inner input:focus ~ .underline:before,
.input-inner input:valid ~ .underline:before {
    transform: scaleX(1);
}

.input-group .btn {
    position: absolute;
    transform: translate(75%, 0);
    border: 1px solid #c850c0;
    width: 40%;
    background: linear-gradient(180deg, #c850c0, #4158d0);
    color: #fff;
    padding: 6px 0;
    border-radius: 100px;
    cursor: pointer;
}

.input-group .btn:hover {
    transition: all 0.5s;
    background: linear-gradient(45deg, #4158d0, #c850c0);
}
